﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="type_edit.aspx.cs" Inherits="AnyOffice.general.notify.manage.ttype_edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>编辑配件通知类型</title>
		
		<script language="javascript" src="/aspnet_client/core/function.js"></script>
		<SCRIPT language="javascript">
function CheckForm()
{
  if(document.Form1.txtTypeNo.value == "")
  {
      alert("配件通知类型排序号不能为空！");
     document.Form1.txtTypeNo.focus();
     return false;
  }
  
  if(!checkIsInteger(document.Form1.txtTypeNo.value)) 
  {
      alert("配件通知类型排序号必须为整数！");
	document.Form1.txtTypeNo.focus();
    return false;
  }
  
  if(document.Form1.txtTypeName.value == "")
  {
      alert("配件通知类型名称不能为空！");
     document.Form1.txtTypeName.focus();
     return false;
  } 
  return true;
}
		</SCRIPT>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
        <div class="main_div">
			<asp:Panel id="pnlMain" runat="server">
				<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
					<tr>
						<td class="Big"><img src="/images/edit.gif" WIDTH="18" HEIGHT="18" align="absMiddle"><span class="big3">
								编辑配件通知类型</span><br>
						</td>
					</tr>
				</table>
				<br>
				<table border="0" width="500" cellpadding="0" cellspacing="0" align="center" class="tab_pub">
					<tr>
						<td nowrap class="TableData">排序号：</td>
						<td class="ta_txt">
							<asp:TextBox id="txtTypeNo" runat="server" CssClass="BigInput" Columns="4" MaxLength="4"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">类型名称：</td>
						<td class="ta_txt">
							<asp:TextBox id="txtTypeName" runat="server" CssClass="BigInput" Columns="30"></asp:TextBox>
						</td>
					</tr>
					<tr align="center">
						<td class="bnt_con" colspan="2" nowrap>
						   <table width="130" cellpadding="0" cellspacing="0" style="border:none;" border="0">
						     <tr>
							   <td style="border:none;" align="left"><input type="submit" value="保 存" class="BigButton" name="submit" onClick="return CheckForm();"></td>
							   <td style="border:none;" align="right"><input type="button" value="返 回" class="BigButton" name="back" onClick="location='type.aspx';"></td>
							 </tr>
						   </table>
						</td>
					</tr>
				</table>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
